package sunwul.hospital.model.model.hosp;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import sunwul.hospital.model.model.base.BaseEntity;

/**
 * <p>
 * Hospital
 * </p>
 *
 * @author qy
 */
@Data
@ApiModel(description = "Hospital")
@TableName("hospital")
public class Hospital extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "医院编号")
	@TableField("hoscode")
	private String hoscode;

	@ApiModelProperty(value = "医院名称")
	@TableField("hosname")
	private String hosname;

	@ApiModelProperty(value = "医院类型")
	@TableField("hostype")
	private String hostype;

	@ApiModelProperty(value = "省code")
	@TableField("provinceCode")
	private String provinceCode;

	@ApiModelProperty(value = "市code")
	@TableField("cityCode")
	private String cityCode;

	@ApiModelProperty(value = "区code")
	@TableField("districtCode")
	private String districtCode;

	@ApiModelProperty(value = "详情地址")
	@TableField("address")
	private String address;

	@ApiModelProperty(value = "医院logo")
	@TableField("logoData")
	private String logoData;

	@ApiModelProperty(value = "医院简介")
	@TableField("intro")
	private String intro;

	@ApiModelProperty(value = "坐车路线")
	@TableField("route")
	private String route;

	@ApiModelProperty(value = "状态 0：未上线 1：已上线")
	@TableField("status")
	private Integer status;

	//预约规则
	@ApiModelProperty(value = "预约规则")
	@JSONField(name = "bookingRule")
	@TableField(exist = false)
	private BookingRule bookingRule;

//	public void setBookingRule(String bookingRule) {
//		this.bookingRule = JSONObject.parseObject(bookingRule, BookingRule.class);
//	}

}

